﻿<UserControl x:Class="Hayabusa._Chauffeurs.GestionView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:cal="http://www.caliburnproject.org"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" Width="784" Height="425">
    <Grid Width="784" Height="425" Background="#FF4C5F81">
        <Rectangle Height="260" HorizontalAlignment="Left" Margin="178,42,0,0" Stroke="#FFCED4DF" VerticalAlignment="Top" Width="340">
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFFCFCFC" Offset="0" />
                    <GradientStop Color="#FFCED4DF" Offset="1" />
                    <GradientStop Color="#FFD7DCE5" Offset="0.525" />
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
        <Rectangle Height="260" HorizontalAlignment="Right" Margin="0,42,178,0" Stroke="#FFCED4DF" VerticalAlignment="Top" Width="77">
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFFCFCFC" Offset="0" />
                    <GradientStop Color="#FFCED4DF" Offset="1" />
                    <GradientStop Color="#FFD7DCE5" Offset="0.525" />
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
        <ComboBox x:Name="selectionChauffeur" Height="23" HorizontalAlignment="Left" Margin="188,57,0,0" VerticalAlignment="Top" Width="320" ItemsSource="{Binding Chauffeurs}" DisplayMemberPath="Nom" SelectedItem="{Binding Chauffeur}" cal:Message.Attach="AffichageChauffeur" />
        <Label Content="Nom:" Height="28" HorizontalAlignment="Left" Margin="188,110,0,0" VerticalAlignment="Top" Width="78" />
        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,110,276,0" VerticalAlignment="Top" Width="236" Text="{Binding NomTb}"/>
        <Label Content="Prénom: " Height="28" HorizontalAlignment="Left" Margin="188,144,0,0" VerticalAlignment="Top" Width="78" />
        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,144,276,0" VerticalAlignment="Top" Width="236" Text="{Binding PrenomTb}" />
        <Label Content="Téléphone:" Height="28" HorizontalAlignment="Left" Margin="188,178,0,0" VerticalAlignment="Top" Width="78" />
        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,178,276,0" VerticalAlignment="Top" Width="236" Text="{Binding TelephoneTb}"/>
        <Button Content="Modifier" Height="23" HorizontalAlignment="Left" Margin="188,257,0,0" VerticalAlignment="Top" Width="100" cal:Message.Attach="ModifierChauffeur" />
        <Button Content="Supprimer" Height="23" HorizontalAlignment="Left" Margin="294,257,0,0" VerticalAlignment="Top" Width="100" cal:Message.Attach="SupprimerChauffeur" />
        <Label Height="28" HorizontalAlignment="Left" Margin="178,347,0,0" VerticalAlignment="Top" Width="340" Foreground="White" Content="{Binding Message}" />
        <Image Height="48" HorizontalAlignment="Right" Margin="0,57,193,0" Source="/Hayabusa;component/Resources/aide.png" Stretch="Fill" VerticalAlignment="Top" Width="48" />
        <Button Content="Aide" Height="33" HorizontalAlignment="Left" Margin="543,111,0,0" VerticalAlignment="Top" Width="48" />
    </Grid>
</UserControl>
